<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

return new class extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('shift_settings', function (Blueprint $table) {
            $table->id();

            $table->char('day_shift_start',32)->nullable()->comment('早班开始时间');
            $table->char('day_shift_end',32)->nullable()->comment('早班结束时间');
            $table->char('night_shift_start',32)->nullable()->comment('晚班开始时间');
            $table->char('night_shift_end',32)->nullable()->comment('晚班结束时间');
            $table->char('remark',32)->nullable()->comment('备注');

            $table->timestamps();
        });

        \DB::statement("ALTER TABLE `shift_settings` comment '班次表'");
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('shift_settings');
    }
};
